import {get, post, _delete} from '../fetch'

/**
 * 基础运营模块----广告信息表
 */
export const getGoodsList = (params) => get('/mGoodsSpu/getList', params) // 列表
export const getAdvertInfoList = (params) => get('mAdvertInfo/getList', params)
// 添加
export const saveAdvertInfoInfo = (params) => post('mAdvertInfo/save', params)
// 更新
export const editAdvertInfoInfo = (params) => post('mAdvertInfo/edit', params)
// 删除
export const deleteAdvertInfoInfo = (params) => post('mAdvertInfo/delete', params)

/**
 * 基础运营模块----协议文本维护
 */

export const getConfigTextList = (params) => get('mConfigText/getList', params)
// 添加
export const saveConfigTextInfo = (params) => post('mConfigText/save', params)
// 更新
export const editConfigTextInfo = (params) => post('mConfigText/edit', params)
// 删除
export const deleteConfigTextInfo = (params) => post('mConfigText/delete', params)

/**
 * 基础运营模块----单页文章维护
 */

export const getNewsInfoList = (params) => get('mNewsInfo/getList', params)
// 添加
export const saveNewsInfoInfo = (params) => post('mNewsInfo/save', params)
// 更新
export const editNewsInfoInfo = (params) => post('mNewsInfo/save', params)
// 上下架
export const editStatus = (params) => post('mNewsInfo/edit', params)
// 删除
export const deleteNewsInfoInfo = (params) => post('mNewsInfo/delete', params)

/**
 * 基础运营模块----运费模板维护
 */

export const getFreightList = (params) => get('jdFreightTemplate/getList', params)
// 添加
export const saveFreightInfo = (params) => post('jdFreightTemplate/save', params)
// 更新
export const editFreightInfo = (params) => post('jdFreightTemplate/edit', params)
// 删除
export const deleteFreightInfo = (params) => post('jdFreightTemplate/delete', params)

/**
 * 基础运营模块---导航菜单
 */

export const getNavigationList = (params) => get('mNavigationInfo/getList', params)
// 添加
export const saveNavigationInfo = (params) => post('mNavigationInfo/save', params)
// 更新
export const editNavigationInfo = (params) => post('mNavigationInfo/edit', params)
// 删除
export const deleteNavigationInfo = (params) => post('mNavigationInfo/delete', params)

/**
 * 获取全国省级编码以及名称
 *
 */
export const getProvinceList = (params) => post('mFreightTemplate/getProvinceList', params)


/**
 * 意见反馈
 */

export const getPublicSuggestList = (params) => get('publicSuggest/getList', params)
// 添加
export const savePublicSuggest = (params) => post('publicSuggest/save', params)
// 更新
export const editPublicSuggest = (params) => post('publicSuggest/save', params)
// 删除
export const deletePublicSuggest = (params) => post('publicSuggest/delete', params)

/**
 * 版本更新
 */

export const getPublicVersionList = (params) => get('publicVersion/getList', params)
// 添加
export const savePublicVersion = (params) => post('publicVersion/save', params)
// 更新
export const editPublicVersion = (params) => post('publicVersion/save', params)
// 删除
export const deletePublicVersion = (params) => post('publicVersion/delete', params)


/**
 * 广告
 */

export const getPublicAdvertList = (params) => get('publicAdvert/getList', params)
// 添加
export const savePublicAdvert = (params) => post('publicAdvert/save', params)
// 更新
export const editPublicAdvert = (params) => post('publicAdvert/save', params)
// 删除
export const deletePublicAdvert = (params) => post('publicAdvert/delete', params)

/**
 * 帮助中心
 */
export const getMHelpDocList = (params) => get('mHelpDoc/getList', params)
// 添加
export const saveMHelpDoc = (params) => post('mHelpDoc/save', params)
// 更新
export const editMHelpDoc = (params) => post('mHelpDoc/edit', params)
// 删除
export const deleteMHelpDoc = (params) => post('mHelpDoc/delete', params)
